import request from '@/utils/request'

// 查询挂号信息列表
export function listMake(query) {
  return request({
    url: '/system/make/list',
    method: 'get',
    params: query
  })
}

// 查询挂号信息详细
export function getMake(mid) {
  return request({
    url: '/system/make/' + mid,
    method: 'get'
  })
}

// 新增挂号信息
export function addMake(data) {
  return request({
    url: '/system/make',
    method: 'post',
    data: data
  })
}

// 修改挂号信息
export function updateMake(data) {
  return request({
    url: '/system/make',
    method: 'put',
    data: data
  })
}

// 删除挂号信息
export function delMake(mid) {
  return request({
    url: '/system/make/' + mid,
    method: 'delete'
  })
}

// 导出挂号信息
export function exportMake(query) {
  return request({
    url: '/system/make/export',
    method: 'get',
    params: query
  })
}